const express = require('express')

const router = express.Router()
const totpController = require('../controllers/totp')

// 生成新的TOTP验证码
router.post('/generate', totpController.generateTOTP)

// 获取当前TOTP验证码
router.get('/current', totpController.getCurrentTOTP)

// 批量获取TOTP验证码
router.post('/batch', totpController.getBatchTOTP)

// 同步账户信息
router.post('/sync-accounts', totpController.syncAccounts)

module.exports = router
